﻿<?php
include 'connect_database.php'; 

if( (isset($_GET['id'])) && ($_GET['id']!="") ){ 
	$id = $_GET['id'];
}

$query_rs = "SELECT * FROM supplement WHERE supplement_id='$id'";
$rs = mysql_query($query_rs,$con);
$row_rs = mysql_fetch_assoc($rs);
$flag = $row_rs['flag'];
	
?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>语文教学辅助系统__播放</title>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<!-- stylesheets -->
		<link rel="stylesheet" type="text/css" href="resources/css/reset.css" />
		<link rel="stylesheet" type="text/css" href="resources/css/style.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="resources/css/style_fixed_full.css" />
		<link id="color" rel="stylesheet" type="text/css" href="resources/css/colors/blue.css" />
		<!-- scripts (jquery) -->
		<script src="resources/scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
		<!--[if IE]><script language="javascript" type="text/javascript" src="resources/scripts/excanvas.min.js"></script><![endif]-->
		<script src="resources/scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
		<script src="resources/scripts/jquery.ui.selectmenu.js" type="text/javascript"></script>
		<script src="resources/scripts/jquery.flot.min.js" type="text/javascript"></script>
		<script src="resources/scripts/tiny_mce/jquery.tinymce.js" type="text/javascript"></script>
		<!-- scripts (custom) -->
		<script src="resources/scripts/smooth.js" type="text/javascript"></script>
		<script src="resources/scripts/smooth.menu.js" type="text/javascript"></script>
		<script src="resources/scripts/smooth.chart.js" type="text/javascript"></script>
		<script src="resources/scripts/smooth.table.js" type="text/javascript"></script>
		<script src="resources/scripts/smooth.form.js" type="text/javascript"></script>
		<script src="resources/scripts/smooth.dialog.js" type="text/javascript"></script>
		<script src="resources/scripts/smooth.autocomplete.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				style_path = "resources/css/colors";

				$("#date-picker").datepicker();

				$("#box-tabs, #box-left-tabs").tabs();
			});
		</script>
		<style type="text/css" media="screen"> 
			html, body	{ height:100%; }
			body { margin:0; padding:0; overflow:auto; }   
			#flashContent { display:none; }
        </style> 
		<script type="text/javascript" src="js/flexpaper_flash.js"></script>
	</head>
	
	<body OnLoad="Initialize()">
		
		<!-- header -->
		<div id="header">
			<div id="header-outer">
				<!-- logo -->
				<div id="logo">
					<h1><a href="" title="Smooth Admin"><img src="resources/images/logo.png" alt="Smooth Admin" /></a></h1>
				</div>
				<!-- end logo -->
				<!-- user -->
				<ul id="user">
					<li class="first"><a href="">账户</a></li>
					<li><a href="">退出</a></li>
					<li class="last highlight"><a href="">View Site</a></li>
				</ul>
				<!-- end user -->
				<div id="header-inner">
					<div id="home">
						<a href=""></a>
					</div>
					<!-- quick -->
					<ul id="quick">
					<li>
						<a href="#" title="Products"><span class="normal">课程管理</span></a>
					</li>
					<li>
						<a href="#" title="Products"><span class="icon"><img src="resources/images/icons/application_double.png" alt="Products" /></span><span>学情跟踪</span></a>
						<ul>
							<li><a href="#">班级跟踪</a></li>
							<li><a href="#">课程跟踪</a></li>
							<li>
								<a href="#">学生个体情况</a></li>
						</ul>
					</li>
					<li>
						<a href="" title="Events"><span class="icon"><img src="resources/images/icons/calendar.png" alt="Events" /></span><span>题库管理</span></a>
						
					</li>
					</ul>
					<!-- end quick -->
					<div class="corner tl"></div>
					<div class="corner tr"></div>
				</div>
			</div>
		</div>
		<!-- end header -->
		<!-- content -->
		<div id="content">
			<!-- table -->
			<div class="box">
				<!-- box / title -->
				<div class="title">
					<h5>音乐播放</h5>							
				</div>	
				
				<p style="margin-left:60px;font-weight:bold;font-size:18px;text-align:left" >标题：<?php echo $row_rs['filename'] ?></p>
				</br>
				<p style="margin-left:60px;font-weight:bold;font-size:14px;color:#9D9D9D;text-align:left" >说明：&nbsp&nbsp	<?php if(($content=$row_rs['supplement_content'])==null){echo "暂无说明......";}else{echo $content;}?></p>
								
				<div name="player" style="margin-left:60px;">	
				
					<!--音频播放-->
					<?php if($flag==1) echo '<!--'; ?>
					
					<param NAME="url" value="<?php echo $row_rs['musicAddress']; ?>">
					<SCRIPT type="text/javascript">
 
					  document.write('<OBJECT id="Player"'); 

					  if(-1 != navigator.userAgent.indexOf("MSIE"))
					  {               
						document.write(' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"');       
					  }
					  else if(-1 != navigator.userAgent.indexOf("Firefox"))
					  {      
						document.write(' type="application/x-ms-wmp"');        
					  }  

					  document.write(' height="65" width="400">');
					  document.write('<PARAM name="autoStart" value="false"/>');
					  document.write('<param name="volume" value="70"/>');
					  document.write('<PARAM name="url" value="<?php echo $row_rs['musicAddress']; ?>"/>');
					  document.write('</OBJECT>'); 
					  
					</SCRIPT>
				 
					<SCRIPT>
					  function Initialize()
					  {
						Player.settings.invokeURLs = false;
						Player.controls.play();
					  }
					</SCRIPT>
					<?php if($flag==1) echo '-->'; ?>
					
					<!--视频播放-->
					<?php if($flag==2) echo '<!--'; ?>					
					<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 2codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="550" HEIGHT="400" id="myMovieName"> 
					<PARAM NAME=movie VALUE="<?php echo $row_rs['videoAddress']; ?>"> 
					<PARAM NAME=quality VALUE=high> 
					<PARAM NAME=bgcolor VALUE=#FFFFFF> 
					<param NAME=allowFullScreen VALUE=true> 
					<EMBED src="<?php echo $row_rs['videoAddress']; ?>" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400" 8NAME="myMovieName" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" ALIGN="" TYPE="application/x-shockwave-flash" 9PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> 
					</EMBED> 
					</OBJECT>
					<?php if($flag==2) echo '-->'; ?>
					
				</div>
			</div>
		</div>		
			
				<!-- end content -->
		<!-- footer -->
		<div id="footer">
			<p>Copyright &copy; 2000-2010 Your Company. All Rights Reserved.</p>
		</div>
		<!-- end footert -->
		</body>
		</html>